<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>events.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
       <span class="fn">events.js</span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    <span class='nodesc'>No description.</span>
  </div>
  

        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="local_closure_goog_testing_events_events.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/local/closure/goog/testing/events/events.js">Git</a></li>
          </ol>
        </div>
</div>

<h2 class="g-first">File Location</h2>
  <div class="g-section g-tpl-20-80">
    <div class="g-unit g-first">
      <div class="g-c-cell code-label">/goog/testing/events/events.js</div>
    </div>
  </div>
<hr/>


  <h2>Classes</h2>
 <div class="fn-constructor">
        <a href="class_goog_testing_events_Event.html">
          goog.testing.events.Event</a><br/>
        <div class="class-details">goog.events.BrowserEvent expects an Event so we provide one for JSCompiler.

This clones a lot of the functionality of goog.events.Event. This used to
use a mixin, but the mixin results in confusing the two types when compiled.

</div>
 </div>
      
<br/>

  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>




  <h2>Global Functions</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.assertEventTarget_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">assertEventTarget_<span class="args">(<span class="arg">target</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type">EventTarget</span>
      </div>


     <div class="entryOverview">
       Asserts an event target exists.  This will fail if target is not defined.

TODO(nnaze): Gradually add this to the methods in this file, and eventually
    update the method signatures to not take nullables.  See <a href="http://b/8961907">http://b/8961907</a>


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">A target to assert.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type">EventTarget</span>&nbsp;
            The target, guaranteed to exist.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line121">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireBlurEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireBlurEvent<span class="args">(<span class="arg">target</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulate a blur event on the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The value returned by firing the blur browser event,
     which returns false iff 'preventDefault' was invoked.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line556">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireBrowserEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireBrowserEvent<span class="args">(<span class="arg">event</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates an event's capturing and bubbling phases.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">event</span>
        : <span class="type">Event</span>
        <div class="entryOverview">A simulated native event. It will be wrapped in a
    normalized BrowserEvent and dispatched to Closure listeners on all
    ancestors of its target (inclusive).</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line584">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireClickEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireClickEvent<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">opt_button</span>,&nbsp;<span class="arg">opt_coords</span>,&nbsp;<span class="arg">opt_eventProperties</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a click event on the given target. IE only supports click with
the left mouse button.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_button</span>
        : <span class="type">goog.events.BrowserEvent.MouseButton=</span>
        <div class="entryOverview">Mouse button;
    defaults to <code> goog.events.BrowserEvent.MouseButton.LEFT</code>.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Mouse position. Defaults to event's
target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_eventProperties</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Event properties to be mixed into the
    BrowserEvent.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line410">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireClickSequence"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireClickSequence<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">opt_button</span>,&nbsp;<span class="arg">opt_coords</span>,&nbsp;<span class="arg">opt_eventProperties</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a mousedown, mouseup, and then click on the given event target,
with the left mouse button.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_button</span>
        : <span class="type">goog.events.BrowserEvent.MouseButton=</span>
        <div class="entryOverview">Mouse button;
    defaults to <code> goog.events.BrowserEvent.MouseButton.LEFT</code>.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Mouse position. Defaults to event's
target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_eventProperties</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Event properties to be mixed into the
    BrowserEvent.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the sequence: false if preventDefault()
    was called on any of the events, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line165">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireContextMenuEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireContextMenuEvent<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">opt_coords</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a contextmenu event on the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Mouse position. Defaults to event's
target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line475">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireContextMenuSequence"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireContextMenuSequence<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">opt_coords</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a mousedown, contextmenu, and the mouseup on the given event
target, with the right mouse button.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Mouse position. Defaults to event's
target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the sequence: false if preventDefault()
    was called on any of the events, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line498">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireDoubleClickEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireDoubleClickEvent<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">opt_coords</span>,&nbsp;<span class="arg">opt_eventProperties</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a double-click event on the given target. Always double-clicks
with the left mouse button since no browser supports double-clicking with
any other buttons.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Mouse position. Defaults to event's
target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_eventProperties</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Event properties to be mixed into the
    BrowserEvent.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line429">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireDoubleClickSequence"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireDoubleClickSequence<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">opt_coords</span>,&nbsp;<span class="arg">opt_eventProperties</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates the sequence of events fired by the browser when the user double-
clicks the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Mouse position. Defaults to event's
target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_eventProperties</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Event properties to be mixed into the
    BrowserEvent.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the sequence: false if preventDefault()
    was called on any of the events, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line188">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireFocusEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireFocusEvent<span class="args">(<span class="arg">target</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulate a focus event on the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The value returned by firing the focus browser event,
    which returns false iff 'preventDefault' was invoked.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line569">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireKeySequence"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireKeySequence<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">keyCode</span>,&nbsp;<span class="arg">opt_eventProperties</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a complete keystroke (keydown, keypress, and keyup). Note that
if preventDefault is called on the keydown, the keypress will not fire.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">keyCode</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">The keycode of the key pressed.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_eventProperties</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Event properties to be mixed into the
    BrowserEvent.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the sequence: false if preventDefault()
    was called on any of the events, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line226">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireMouseButtonEvent_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireMouseButtonEvent_<span class="args">(<span class="arg">type</span>,&nbsp;<span class="arg">target</span>,&nbsp;<span class="arg">opt_button</span>,&nbsp;<span class="arg">opt_coords</span>,&nbsp;<span class="arg">opt_eventProperties</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Helper function to fire a mouse event.
with the left mouse button since no browser supports double-clicking with
any other buttons.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">type</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The event type.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_button</span>
        : <span class="type">number=</span>
        <div class="entryOverview">Mouse button; defaults to
    <code> goog.events.BrowserEvent.MouseButton.LEFT</code>.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Mouse position. Defaults to event's
target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_eventProperties</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Event properties to be mixed into the
    BrowserEvent.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line454">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireMouseDownEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireMouseDownEvent<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">opt_button</span>,&nbsp;<span class="arg">opt_coords</span>,&nbsp;<span class="arg">opt_eventProperties</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a mousedown event on the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_button</span>
        : <span class="type">goog.events.BrowserEvent.MouseButton=</span>
        <div class="entryOverview">Mouse button;
    defaults to <code> goog.events.BrowserEvent.MouseButton.LEFT</code>.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Mouse position. Defaults to event's
target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_eventProperties</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Event properties to be mixed into the
    BrowserEvent.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line362">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireMouseMoveEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireMouseMoveEvent<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">opt_coords</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a mousemove event on the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Mouse position. Defaults to event's
target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line321">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireMouseOutEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireMouseOutEvent<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">relatedTarget</span>,&nbsp;<span class="arg">opt_coords</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a mouseout event on the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">relatedTarget</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The related target for the event (e.g.,
    the node that the mouse is being moved into).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Mouse position. Defaults to event's
target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line340">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireMouseOverEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireMouseOverEvent<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">relatedTarget</span>,&nbsp;<span class="arg">opt_coords</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a mouseover event on the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">relatedTarget</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The related target for the event (e.g.,
    the node that the mouse is being moved out of).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Mouse position. Defaults to event's
target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line303">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireMouseUpEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireMouseUpEvent<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">opt_button</span>,&nbsp;<span class="arg">opt_coords</span>,&nbsp;<span class="arg">opt_eventProperties</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a mouseup event on the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_button</span>
        : <span class="type">goog.events.BrowserEvent.MouseButton=</span>
        <div class="entryOverview">Mouse button;
    defaults to <code> goog.events.BrowserEvent.MouseButton.LEFT</code>.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Mouse position. Defaults to event's
target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_eventProperties</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Event properties to be mixed into the
    BrowserEvent.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line386">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireNonAsciiKeySequence"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireNonAsciiKeySequence<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">keyCode</span>,&nbsp;<span class="arg">keyPressKeyCode</span>,&nbsp;<span class="arg">opt_eventProperties</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a complete keystroke (keydown, keypress, and keyup) when typing
a non-ASCII character. Same as fireKeySequence, the keypress will not fire
if preventDefault is called on the keydown.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">keyCode</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">The keycode of the keydown and keyup events.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">keyPressKeyCode</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">The keycode of the keypress event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_eventProperties</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Event properties to be mixed into the
    BrowserEvent.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the sequence: false if preventDefault()
    was called on any of the events, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line246">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.firePopStateEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">firePopStateEvent<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">state</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a popstate event on the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">state</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>
        <div class="entryOverview">History state object.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line543">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireTouchEndEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireTouchEndEvent<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">opt_coords</span>,&nbsp;<span class="arg">opt_eventProperties</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a touchend event on the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Touch position. Defaults to event's
    target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_eventProperties</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Event properties to be mixed into the
    BrowserEvent.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line669">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireTouchMoveEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireTouchMoveEvent<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">opt_coords</span>,&nbsp;<span class="arg">opt_eventProperties</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a touchmove event on the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Touch position. Defaults to event's
    target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_eventProperties</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Event properties to be mixed into the
    BrowserEvent.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line646">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireTouchSequence"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireTouchSequence<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">opt_coords</span>,&nbsp;<span class="arg">opt_eventProperties</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a simple touch sequence on the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Touch position. Defaults to event
    target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_eventProperties</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Event properties to be mixed into the
    BrowserEvent.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the sequence: false if preventDefault()
    was called on any of the events, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line692">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.fireTouchStartEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">fireTouchStartEvent<span class="args">(<span class="arg">target</span>,&nbsp;<span class="arg">opt_coords</span>,&nbsp;<span class="arg">opt_eventProperties</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       Simulates a touchstart event on the given target.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">target</span>
        : <span class="type">EventTarget</span>
        <div class="entryOverview">The target for the event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Touch position. Defaults to event's
    target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_eventProperties</span>
        : <span class="type">Object=</span>
        <div class="entryOverview">Event properties to be mixed into the
    BrowserEvent.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            The returnValue of the event: false if preventDefault() was
    called on it, true otherwise.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line623">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.isBrokenGeckoMacActionKey_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">isBrokenGeckoMacActionKey_<span class="args">(<span class="arg">e</span>)</span>
        </span>
        &#8658; <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">e</span>
        : <span class="type"><a href="class_goog_testing_events_Event.html">goog.testing.events.Event</a></span>
        <div class="entryOverview">The event.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean">boolean</a></span>&nbsp;
            Whether this is the Gecko/Mac's Meta-C/V/X, which
    is broken and requires special handling.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line285">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.mixinListenable"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">mixinListenable<span class="args">(<span class="arg">obj</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Mixins a listenable into the given object. This turns the object
into a goog.events.Listenable. This is useful, for example, when
you need to mock a implementation of listenable and still want it
to work with goog.events.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">obj</span>
        : <span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object">Object</a></span>
        <div class="entryOverview">The object to mixin into.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line710">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.testing.events.setEventClientXY_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.testing.events.</span><span class="entryName">setEventClientXY_<span class="args">(<span class="arg">event</span>,&nbsp;<span class="arg">opt_coords</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       A static helper function that sets the mouse position to the event.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">event</span>
        : <span class="type">Event</span>
        <div class="entryOverview">A simulated native event.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_coords</span>
        : <span class="type">goog.math.Coordinate=</span>
        <div class="entryOverview">Mouse position. Defaults to event's
target's position (if available), otherwise (0, 0).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_testing_events_events.js.source.html#line133">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>






      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Directory events</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">File Reference</h2>
            <div id="sideFileIndex" rootPath="" current="/goog/testing/events/events.js"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
